package com.zlll.winner.enums.activity;


import com.zlll.winner.enums.biz.Constant;

public class ActivityEnum {

    public enum StatusEnum implements Constant {

        DRAFT("草稿",0),
        NOTSTART("未开始",1),
        APPLY("报名中",2),
        WAITINGSTART("活动待开始",3),
        EVENT("活动中",4),
        END("已结束",5),
        EXPIRED("已失效",6);


        private String desc;
        private int value;
        StatusEnum(String desc, int val) {
            this.desc = desc;
            this.value = val;
        }

        @Override
        public String desc() {
            return desc;
        }

        @Override
        public int val() {
            return value;
        }
    }

    public enum SourceEnum implements Constant {

        APP("和院通APP",0),
        HTML("分享链接",1),
        LITE("小程序",2);
        private String desc;
        private int value;
        SourceEnum(String desc, int val) {
            this.desc = desc;
            this.value = val;
        }

        @Override
        public String desc() {
            return desc;
        }

        @Override
        public int val() {
            return value;
        }
    }

    public enum ApplyStatusEnum implements Constant {
        NO("已取消",1),
        YES("已报名",0);
        ApplyStatusEnum(String desc,int val) {
            this.value = val;
            this.desc = desc;
        }
        private String desc;
        private int value;

        @Override
        public String desc() {
            return desc;
        }

        @Override
        public int val() {
            return value;
        }
    }

    public enum ApplyPushStatusEnum implements Constant {
        NO("未推送",0),
        YES("也推送",1);
        ApplyPushStatusEnum(String desc,int val) {
            this.value = val;
            this.desc = desc;
        }
        private String desc;
        private int value;

        @Override
        public String desc() {
            return desc;
        }

        @Override
        public int val() {
            return value;
        }
    }

    public enum ApplyDataSourceEnum implements Constant {

        APP("和院通APP",0),
        HTML("分享链接",1),
        LITE("小程序",2);

        ApplyDataSourceEnum(String desc,int val) {
            this.value = val;
            this.desc = desc;
        }
        private String desc;
        private int value;

        @Override
        public String desc() {
            return desc;
        }

        @Override
        public int val() {
            return value;
        }
    }
}
